#include<iostream>
using namespace std;
int exam4_27()
{
	int x, y, z;
	for (x = 0; x <= 100 / 5; x++)
		for (y = 0; y <= 100 / 3; y++)
			for (z = 0; z <= 100 * 3; z++)
				if (5 * x + 3 * y + z / 3 == 100 && x + y + z == 100)
					cout << x << "  " << y << "  " << z << endl;
	return 0;
}